﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Selector - Hierarchy</title>
    <script src="script/jquery-1.3.2.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        $(document).ready(function() {
            $("label ~ input").addClass("InputForm");
        });
    </script>
    <style type="text/css">
        .InputForm
        {
        	border:solid 1px #000;
        }
    </style>
</head>
<body>
    <form action="15.html" method="post">
        <div id="Main">
            <label>No : </label> <input type="text" name="No" id="No" /><br />
            <label>Nama : </label> <input type="text" name="Nama" id="Nama" /><br />
            <label>Alamat : </label> <input type="text" name="Alamat" id="Alamat" /><br />
            <div>
                <label>Kode Post :</label><input type="text" name="KodePost" id="KodePost" /><br />
                <label>Telp :</label><input type="text" name="Telp" id="Telp" /><br />
            </div>
            <input type="button" value="Submit" id="btn" />
        </div>
    </form>
</body>
</html>
